package com.sdut.material.service;

import com.sdut.material.pojo.Material;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sdut.material.util.JSONResult;
import com.sdut.material.util.LayUITableResult;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Yu
 * @since 2022-04-20
 */
public interface IMaterialService extends IService<Material> {

    Material selectById(Integer materialId);

    LayUITableResult selectByPage(long page, long limit);

    JSONResult insert(Material material, String types);

    JSONResult selectMaterialAndTypes(Integer materialId);

    JSONResult updateMaterial(Material material, String types);

    void deleteById(Integer materialId);

}
